import request from '@/utils/request.js'
export const page = (data) => {
    return request.get(
        '/papers/getPage',
        {
            params:data,
        }
    )
}
export const upload = (data) => {
    return request.post(
        '/papers/upload',
        data
    )
}

export const uploadfile = (data) => {
    return request.post(
        '/upload/file',
        data
    )
}
export const dele = (id) => {
    return request.delete(
        `/papers/delete/${id}`,
    )
}
export const update =(username,data) =>{
    return request.put(
        `/papers/update/${id}`,
        data
    )
}
export const find = (id) => {
    return request.get(
        `/papers/getPaper/${id}`,
    )
}